<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 4.01 Transitional//EN" "http://www.w3.org/tr/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/pages/safeai/jsp/common/taglibs.jsp"%>
<html>
	<head>
		<title>预订信息查看</title>
		<%@ include file="/pages/safeai/jsp/common/meta.jsp"%>
		<script type="text/javascript" src="${ctx}/script/common/common.js"></script>
		<script type="text/javascript" src="${ctx}/script/order.js"></script>
		<link href="${ctx}/css/safeai/together.css" rel="stylesheet" type="text/css">
	</head>
	<body style="font-size: 12px">
		<form action="${ctx}/productSon.do?method=showMsg"
			method="post">
			<input type="hidden" name="myorder.deliver1" value="${para.deliver}"/>
			<table align="center" width="98%">
				<tr>
					<th align="center" valign="middle" colspan="5" height="25px">
						预订信息查看
					</th>
				</tr>
				<tr>
					<td class="td_01">配送方式：</td>
					<td class="td_03">	<select name="myorder.deliver">
							<option value="">
								配送方式
							</option>
							<logic:equal name="para" property="deliver" value="0">
							<option value="0" selected="selected">
								邮寄
							</option>
							</logic:equal>
							<logic:notEqual name="para" property="deliver" value="0">
							<option value="0">
								邮寄
							</option>
							</logic:notEqual>
							<logic:equal name="para" property="deliver" value="1">
							<option value="1" selected="selected"> 
								北京送货
							</option>
							</logic:equal>
							<logic:notEqual name="para" property="deliver" value="1">
							<option value="1"> 
								北京送货
							</option>
							</logic:notEqual>
							<logic:equal name="para" property="deliver" value="2">
							<option value="2" selected="selected">
								网站自提
							</option>
							</logic:equal>
							<logic:notEqual name="para" property="deliver" value="2">
							<option value="2">
								网站自提
							</option>
							</logic:notEqual>
							<logic:equal name="para" property="deliver" value="3">
							<option value="3" selected="selected">
								五棵松店自取
							</option>
							</logic:equal>
							<logic:notEqual name="para" property="deliver" value="3">
							<option value="3">
								五棵松店自取
							</option>
							</logic:notEqual>
							<logic:equal name="para" property="deliver" value="4">
							<option value="4" selected="selected">
								SOHO店自取
							</option>
							</logic:equal>
							<logic:notEqual name="para" property="deliver" value="4">
							<option value="4">
								SOHO店自取
							</option>
							</logic:notEqual>
						</select>
					</td>
					<td class="td_01">选择商品：</td>
					<td class="td_03"><select name="myorderproduct.product_id">
							<option value="">
								所有商品
							</option>
							<logic:present name="all">
								<logic:iterate id="allp" name="all">
									<logic:equal name="allp" property="product_id" value="${is}">
									<option value="${allp.product_id}" selected="selected">
									${allp.name}
									</option>
									</logic:equal>
									<logic:notEqual name="allp" property="product_id" value="${is}">
									<option value="${allp.product_id}">
									${allp.name}
									</option>
									</logic:notEqual>
								</logic:iterate>
							</logic:present>
						</select>
					</td>
				</tr>
				<tr>
					<td colspan="4" align="center">
						<input type="submit" name="Submit" class="btn" value="查询">
					</td>
				</tr>
			</table>
			<br />
			<br />
			<br />
			<table align="center" width="98%">
				<tr align="center">
					<th class="td_01" nowrap height="25px">
						预定编号
					</th>
					<th class="td_01" nowrap>
						顾客姓名
					</th>
					<th class="td_01" nowrap>
						联系电话
					</th>
					<th class="td_01" nowrap>
						预订商品
					</th>
					<th class="td_01" nowrap>
						送货方式
					</th>
					<th class="td_01" nowrap>
						预订状态
					</th>
					<th class="td_01" nowrap>
						电子邮件
					</th>
					<th class="td_01" nowrap>
						操作
					</th>
				</tr>
				<logic:present name="DemoRange">
					<logic:iterate id="xianshi" name="DemoRange" property="records">
						<tr align="center">
							<td class="td_03">
								${xianshi.id}
							</td>
							<td class="td_03">
								${xianshi.name}
							</td>
							<td class="td_03">
								${xianshi.phone}
							</td>
							<td class="td_03">
								${xianshi.pname}
							</td>
							<td class="td_03">
								<logic:equal value="0" name="xianshi" property="deliver">邮寄</logic:equal>
								<logic:equal value="1" name="xianshi" property="deliver">北京送货</logic:equal>
								<logic:equal value="2" name="xianshi" property="deliver">网站自提</logic:equal>
								<logic:equal value="3" name="xianshi" property="deliver">五棵松店自取</logic:equal>
								<logic:equal value="4" name="xianshi" property="deliver">SOHO店自取</logic:equal>
							</td>
							<td class="td_03">
								<logic:equal value="0" name="xianshi" property="status">预订中</logic:equal>
								<logic:equal value="1" name="xianshi" property="status">订金已交</logic:equal>
								<logic:equal value="2" name="xianshi" property="status">已完成</logic:equal>
								<logic:equal value="3" name="xianshi" property="status">已取消</logic:equal>
							</td>
							<td class="td_03">
								${xianshi.email}
							</td>
							<td class="td_03">
								<logic:equal value="0" name="xianshi" property="status">
									<a href="${ctx}/productSon.do?method=update&id=${xianshi.id}">修改
									</a>
									<a
										href="${ctx}/productSon.do?method=orderCancel&id=${xianshi.id}"
										onclick="return confirm('取消该预定?');">取消 </a>
									<a href="${ctx}/productSon.do?method=finish&id=${xianshi.id}"
										onclick="return confirm('完成该预定?');">完成</a>
								</logic:equal>
								<logic:equal value="1" name="xianshi" property="status">
									<a href="${ctx}/productSon.do?method=update&id=${xianshi.id}">修改
									</a>
									<a
										href="${ctx}/productSon.do?method=orderCancel&id=${xianshi.id}"
										onclick="return confirm('取消该预定?');">取消 </a>
									<a href="${ctx}/productSon.do?method=finish&id=${xianshi.id}"
										onclick="return confirm('完成该预定?');">完成</a>
								</logic:equal>
								<logic:notEqual value="0" name="xianshi" property="status">
									<logic:notEqual value="1" name="xianshi" property="status">
										<a href="${ctx}/productSon.do?method=delete&id=${xianshi.id}"
											onclick="return confirm('是否确认删除?');">删除</a>
									</logic:notEqual>
								</logic:notEqual>
							</td>
						</tr>
					</logic:iterate>
				</logic:present>
				<tr>
					<td colspan="8" align="right">
						<%@ include file="/pages/safeai/jsp/common/page.jsp"%>&nbsp;&nbsp;&nbsp;&nbsp;
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>